
// 此处主机域名修改成腾讯云解决方案分配的域名
//var host = 'https://www.japitta.com/booking_api';
var host = 'https://test.japitta.com/booking_api'

var config = {

  // 下面的地址配合云端 Demo 工作
  service: {
    host,

    // 登录地址，用于建立会话
    loginUrl: `${host}/wechat/customer/login.do`,

    addressUrl: `${host}/commons/cityList.do`,

    //getWXPhoneUrl: `${host}/wechat/customer/getPhone.do`,

    getWXPhoneUrl2: `${host}/wechat/customer/getPhone.do`,


    //用户资料
    userInfoUrl: `${host}/wechat/customer/profile.do`,

    // 修改电话
    updatePhoneUrl: `${host}/wechat/customer/changePhone.do`,

    getSessionKey: `${host}/wechat/customer/getSessionKey.do`,

    //修改姓名
    updateNameUrl: `${host}/wechat/customer/changeName.do`,

    //首页
    indexPageUrl: `${host}/wechat/merchant/list.do`,

    //商家详情
    businessDetailsUrl: `${host}/wechat/merchant/deitail.do`,

    // 我的优惠列表
    myDiscountUrl: `${host}/wechat/discount/list.do`,

    //商家优惠列表
    businessDiscountUrl: `${host}/wechat/discount/merchantDiscountList.do`,

    //删除优惠
    deleteDiscountUrl: `${host}/wechat/discount/{customerDiscountId}/delete.do`,

    //添加优惠
    addDiscountUrl: `${host}/wechat/discount/{discountId}/add.do`,

    addOrderUrl: `${host}/wechat/orders/addOrder.do`,
    
    //编辑订单
    editUrl: `${host}/wechat/orders/changeOrder.do`,

    //订单列表
    orderListUrl: `${host}/wechat/orders/orderList.do`,

    //订单详情
    orderDetailUrl: `${host}/wechat/orders/orderDetail.do`,

    //取消订单
    cancleOrerUrl: `${host}/wechat/orders/{orderId}/cancel.do`,

    picUrl: `https://www.japitta.com/booking/files/`

  }
};

module.exports = config;